var share_folder_root='Z:';
//var share_folder_root='/home/sysadmin/data/98-Training';

function resizeimg(obj) {
    $('.site-demo-flow').height($(window.parent).height() - 28 - 43 - 61);

    var maxW = $('.layui-row').width() / 3 * 2;
    var maxH = $('.site-demo-flow').height();
    var imgW = obj.width;
    var imgH = obj.height;
    if (imgW > maxW || imgH > maxH) {
        var ratioA = imgW / maxW;
        var ratioB = imgH / maxH;
        if (ratioA > ratioB) {
            imgW = maxW;
            imgH = obj.height /ratioA;
        } else {
            imgH = maxH;
            imgW = obj.width / ratioB;
        }
        obj.width = imgW;
        obj.height = imgH;
    }
}